package com.dxk.mapper;


import com.dxk.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface EmployeeMapper {

    //获取所有员工信息
    List<Employee> getAllEmployee();

    //根据id获取员工
    Employee getEmployeeById(@Param("id")int id);

    //根据id删除一个员工
    int deleteEmployeeById(@Param("id")int id);

    //添加一个员工
    int addEmployee(Employee employee);

    //修改员工信息 根据id
    int updateEmployeeById(@Param("id")int id ,Employee employee);
    //查询员工所在部门




}
